package cn.hicard.util;


import java.util.HashMap;

import java.util.Map;


public class SelectUtils {
	
	//商户等级 1：普通商户 2：vip商户 3：超级vip 4：灰名单 5：黑名单
	static Map<String,String> merchDegreeMap = new HashMap<String,String>();
	//商户状态0:禁用 1:启用
	static Map<String,String> merchStatusMap = new HashMap<String,String>();
	//风控等级
	static Map<String,String> riskDegreeMap = new HashMap<String,String>();
	//业务配置禁用启用
	static Map<String,String> businessStatusMap = new HashMap<String,String>();
	
	
	
	static{
		//商户等级
		merchDegreeMap.put("1", "普通商户");
		merchDegreeMap.put("2", "vip商户");
		merchDegreeMap.put("3", "超级vip");
		merchDegreeMap.put("4", "灰名单");
		merchDegreeMap.put("5", "黑名单");
		
		//商户状态0:禁用 1:启用
		merchStatusMap.put("0", "禁用");
		merchStatusMap.put("1", "启用");
	
		//风控等级
		riskDegreeMap.put("A", "一级");
		riskDegreeMap.put("B", "二级");
		riskDegreeMap.put("C", "三级");
		riskDegreeMap.put("D", "四级");
		riskDegreeMap.put("E", "五级");
		//业务配置禁用启用
		businessStatusMap.put("0", "禁用");
		businessStatusMap.put("1", "启用");
	;
	}

	//商户等级 1：普通商户 2：vip商户 3：超级vip 4：灰名单 5：黑名单
	public static String getValueByMerchDegreeKey(String key){
		return merchDegreeMap.get(key);
	}
	
	public static Map<String,String> getMerchDegreeMap(){
		return merchDegreeMap;
	}
	
	//商户状态0:禁用 1:启用
	public static String getValueByMerchStatusKey(String key){
		
			return merchStatusMap.get(key);
		
	
	}
	
	public static Map<String,String> getMerchStatusMap(){
		return merchStatusMap;
	}

	//风控等级
	public static String getValueByRiskDegreeKey(String key){
			return riskDegreeMap.get(key);
	}
	
	public static Map<String,String> getRiskDegreeMap(){
		return riskDegreeMap;
	}
	
	//业务配置禁用启用
	public static String getValueByBusinessStatusKey(String key){
		return businessStatusMap.get(key);
	}
	
	public  static Map<String,String> getBusinessStatusMap(){
		return businessStatusMap;
	}
	

}
